package org.ww.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.ww.common.utils.PageUtils;
import org.ww.product.entity.SpuInfoEntity;
import org.ww.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author ww
 * @email ww@qq.com
 * @date 2024-01-05 13:25:18
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存spuInfo
     * @param spuSaveVo
     */
    void saveSpuInfo(SpuSaveVo spuSaveVo);

    /**
     * 根据条件查询
     * @param params
     * @return
     */
    PageUtils queryPageByParams(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

